package com._51cto.healthy.service;

import com._51cto.healthy.base.BaseMapper;
import com._51cto.healthy.mapper.OrderSettingMapper;
import com._51cto.healthy.pojo.OrderSetting;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/****
 * @Author:DancingHorse
 * @Description:TOrdersetting业务层接口实现类
 * @Date 2022/4/14 0:16
 *****/
@DubboService
public class OrderSettingServiceImpl implements OrderSettingService {

    @Autowired
    private OrderSettingMapper baseMapper;

    public BaseMapper<OrderSetting> getDao(){
        return baseMapper;
    }

    @Override
    public List<OrderSetting> queryByUserId(Integer id) {
        return baseMapper.queryByUserId(id);
    }

    @Override
    public List<String> queryDateByDoctor(Integer doctor) {
        return baseMapper.queryDateStringByDoctor(doctor);
    }

    @Override
    public void deleteByPK(Integer pk) {
        baseMapper.deleteByPK(pk);
    }

    @Override
    public void insert(OrderSetting orderSetting) {
        baseMapper.insert(orderSetting);
    }

    @Override
    public void update(OrderSetting orderSetting) {
        baseMapper.update(orderSetting);
    }
}